package com.taiyuan.zfmvp.shejimoshi.prototype;

import org.omg.CORBA.ShortHolder;

/**
 * @param
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:
 * @Date 2022/10/10
 * @return
 */
public class Sheep  implements  Cloneable{

    private int age;
    private String name;
    private String color;

    @Override
    protected Object clone() throws CloneNotSupportedException {

        Sheep sheep = (Sheep)super.clone();

        return sheep;
    }

    @Override
    public String toString() {
        return "Sheep{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public Sheep(int age, String name, String color) {
        this.age = age;
        this.name = name;
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }


}
